package com.nmsl.system.exam_project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.system.exam_project.mapper.ExaminationProjectMapper;
import com.nmsl.system.exam_project.domain.ExaminationProject;
import com.nmsl.system.exam_project.service.IExaminationProjectService;

/**
 * 检查项目Service业务层处理
 * 
 * @author gmh
 * @date 2025-02-17
 */
@Service
public class ExaminationProjectServiceImpl implements IExaminationProjectService 
{
    @Autowired
    private ExaminationProjectMapper examinationProjectMapper;

    /**
     * 查询检查项目
     * 
     * @param id 检查项目主键
     * @return 检查项目
     */
    @Override
    public ExaminationProject selectExaminationProjectById(Long id)
    {
        return examinationProjectMapper.selectExaminationProjectById(id);
    }

    /**
     * 查询检查项目列表
     * 
     * @param examinationProject 检查项目
     * @return 检查项目
     */
    @Override
    public List<ExaminationProject> selectExaminationProjectList(ExaminationProject examinationProject)
    {
        return examinationProjectMapper.selectExaminationProjectList(examinationProject);
    }

    /**
     * 新增检查项目
     * 
     * @param examinationProject 检查项目
     * @return 结果
     */
    @Override
    public int insertExaminationProject(ExaminationProject examinationProject)
    {
        return examinationProjectMapper.insertExaminationProject(examinationProject);
    }

    /**
     * 修改检查项目
     * 
     * @param examinationProject 检查项目
     * @return 结果
     */
    @Override
    public int updateExaminationProject(ExaminationProject examinationProject)
    {
        return examinationProjectMapper.updateExaminationProject(examinationProject);
    }

    /**
     * 批量删除检查项目
     * 
     * @param ids 需要删除的检查项目主键
     * @return 结果
     */
    @Override
    public int deleteExaminationProjectByIds(Long[] ids)
    {
        return examinationProjectMapper.deleteExaminationProjectByIds(ids);
    }

    /**
     * 删除检查项目信息
     * 
     * @param id 检查项目主键
     * @return 结果
     */
    @Override
    public int deleteExaminationProjectById(Long id)
    {
        return examinationProjectMapper.deleteExaminationProjectById(id);
    }
}
